{% include file="index.header.tpl.php" %}
{% include file="index.left.tpl.php" %}
  <style>
		@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
		#mytable, #mytable thead, #mytable tbody, #mytable th, #mytable td, #mytable tr { 
			display: block; 
		}
		#mytable thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		#mytable td { 
			border: none;
			border-bottom: 1px solid #eee; 
			position: relative;
			padding-left:44% !important; 
			padding-top:10px ;
		}
	    #mytable tr{ margin-bottom:20px;}
		#mytable td:before { 
			position: absolute;
			top:10px;
			left:8px;
			width: 45%; 
			padding-right:10px;
			white-space: nowrap;
		}
		    #mytable td:nth-of-type(1):before { content: "编号"; }
			#mytable td:nth-of-type(2):before { content: "姓名"; }
			#mytable td:nth-of-type(3):before { content: "性别"; }
			#mytable td:nth-of-type(4):before { content: "出生日期"; }
			#mytable td:nth-of-type(5):before { content: "学历"; }
			#mytable td:nth-of-type(6):before { content: "职称"; }
			#mytable td:nth-of-type(7):before { content: "参加工作时间"; }
			#mytable td:nth-of-type(8):before { content: "到校工作时间"; }
			#mytable td:nth-of-type(9):before { content: "操作"; }
        }		
	</style>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">	
                <div class="box-header with-border">
                    <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">教师信息列表</p>
				
                </div>
                <div class="box-body">
					<div class="col-sm-6 col-xs-12 form-group" style="padding-left:0;">
						  <label for="inputPassword3" class="col-sm-2 col-xs-12 control-label text-left" style="padding:0; font-weight:500; ">
							   姓名：
						  </label>
						  <div class="col-sm-4 col-xs-9" style="padding:0;">
							   <input type="text" class="form-control" value="" id="from" name="staff_name"> 
						  </div>
                           <div class="col-sm-1 col-xs-3" >
							    <button style="submit" class="btn btn-warning ">查询</button> 
						  </div>						  
				    </div>
					<div style="clear:both;"></div>
                     <table class="table table-bordered table-striped"  id="mytable">
                                <thead>
                                    <tr style="background-color:#a273ff;">
                                        <td>编号  <a class="fa fa-sort-desc" href="index.php?a=teacher.teacherlist&number_desc=desc"></a></td>
                                        <td>姓名  <a class="fa fa-sort-up (alias)"></a></td>
										<td>性别</td>
                                        <td>出生日期</td>
										<td>学历</td>
                                        <td>职称</td>
										<td>参加工作时间</td>
										<td>到校时间</td>
                                       
                                    </tr>	
                                </thead>

                                <tbody>
                                {%foreach from=$staff_lists key=key item=value%}
                                    <tr>
                                        <td>{%$value.staff_number%}</td>
                                        <td>{%$value.staff_name%}</td>
										<td>{%if $value.staff_sex=='0'%}女{%else%}男{%/if%}</td>
                                        <td>{%$value.staff_birth%}</td>
										<td>{%if $value.staff_education=="0"%}专科以下{%elseif $value.staff_education=="1"%}专科{%elseif $value.staff_education=="2"%}本科{%elseif $value.staff_education=="3"%}研究生{%else $value.staff_education=="4"%}研究生以上{%/if%}</td>
                                        <td>{%if $value.staff_position=="0"%}未定级{%elseif $value.staff_position=="1"%}二级{%elseif $value.staff_position=="2"%}一级{%else $value.staff_position=="3"%}高级{%/if%}</td>
										<td>{%$value.start_time%}</td>
										<td>{%$value.end_time%}</td>
                       
                                    </tr>	
                                  {%/foreach%}
                            </tbody>
                        </table>
                        {%$page%}
				   </div><!--box-body -->
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
 {% include file="index.footer.tpl.php" %}